Smart Camera User Interface

ABSTRACT

Implementations of the present disclosure include actions of receiving image data of an image capturing a scene, receiving data describing one or more entities determined from the scene, the one or more entities being determined from the scene, determining one or more actions based on the one or more entities, each action being provided at least partly based on search results from searching the one or more entities, and providing instructions to display an action interface comprising one or more action elements, each action element being to induce execution of a respective action, the action interface being displayed in a viewfinder

CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation application of, and claims priorityto, U.S. patent application Ser. No. 15/946,342, titled “SMART CAMERAUSER INTERFACE,” filed on Apr. 5, 2018, which application is acontinuation application of, and claims priority to, U.S. patentapplication Ser. No. 15/428,821, now U.S. Pat. No. 9,973,705, titled“SMART CAMERA USER INTERFACE,” filed on Feb. 9, 2017, which applicationclaims priority to U.S. patent application Ser. No. 14/618,962, now U.S.Pat. No. 9,600,724, titled “SMART CAMERA USER INTERFACE,” filed on Feb.10, 2015, which application claims the benefit of U.S. ProvisionalApplication No. 61/937,833 filed on Feb. 10, 2014. The disclosure ofeach of the foregoing applications is incorporated herein by reference.

BACKGROUND

Users are increasingly using devices, such as smartphones, to captureimages that contain information. In some instances, users capture imagesas keepsakes, for informational purposes, to share with other users,and/or as reminders, among other reasons.

SUMMARY

This specification relates to enabling execution of one or more actionsbased on content provided in image data.

Implementations of the present disclosure are generally directed toproviding an action interface in a viewfinder of a camera applicationexecuted on a device, the action interface including action elementsbased on content of a scene.

In general, innovative aspects of the subject matter described in thisspecification can be embodied in methods that include actions ofreceiving image data, the image data being provided from a camera andcorresponding to a scene viewed by the camera; receiving data describingone or more entities determined from the scene, the one or more entitiesbeing determined from the scene; determining one or more actions basedon the one or more entities, each action being provided at least partlybased on search results from searching the one or more entities;providing instructions to display an action interface comprising one ormore action elements, each action element being to induce execution of arespective action, the action interface being displayed in a viewfinder.Other implementations of this aspect include corresponding systems,apparatus, and computer programs, configured to perform the actions ofthe methods, encoded on computer storage devices.

Particular implementations of the subject matter described in thisspecification can be implemented so as to realize one or more of thefollowing advantages. In some examples, implementations of the presentdisclosure enable users to more easily fulfill in original intent whencapturing an image. For example, although the user is capturing theimage of a scene, the user's intent may actually be using the image as areminder or as a contribution to a collection of images, e.g., photoalbum. In some examples, implementations enable users to use computingdevices as a physical-to-digital converter, e.g., converting areal-world scene to a reminder. In some examples, implementations enableusers to gain knowledge about entities depicted in images, e.g.,providing actions based on search results.

The details of one or more implementations of the subject matterdescribed in this specification are set forth in the accompanyingdrawings and the description below. Other features, aspects, andadvantages of the subject matter will become apparent from thedescription, the drawings, and the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 depicts an example environment in which implementations of thepresent disclosure can be provided.

FIGS. 2A-2C depict example interfaces in accordance with implementationsof the present disclosure.

FIG. 3 depicts an example process that can be executed in accordancewith implementations of the present disclosure.

Like reference numbers and designations in the various drawings indicatelike elements.

DETAILED DESCRIPTION

FIG. 1 depicts an example environment 100 in which implementations ofthe present disclosure can be provided. The example environment 100includes a device 102, a server system 104 and a network 106. In someexamples, the device 102 includes a personal computer, a mobilecomputing device, e.g., a smartphone, a wearable computing device,and/or a tablet computing device. The device 102 can send and receivedata over the network 106. In the example of FIG. 1, the device 102 isprovided as a smartphone, e.g., a phone that is enabled to communicateover the Internet. It is contemplated that implementations of thepresent disclosure can also be realized using other types of devices. Insome examples, the network 106 includes a local area network (LAN), awide area network (WAN), the Internet, or a combination thereof, thatconnects the device 102 and the server system 104. In some examples, thenetwork 106 can be accessed over a wired and/or a wirelesscommunications link. For example, the device 102 can utilize a cellularnetwork to access the network 106. In some examples, the server system104 includes a computing device 110 and computer-readable memoryprovided as a persistent storage device 112, e.g., database. In someexamples, the server system 104 represents various forms of serversystems including, but not limited to, a web server, an applicationserver, a proxy server, a network server, or a server farm.

In some implementations, the device 102 includes a camera that can beused to provide image data. In some examples, the camera is integratedinto the device 102. In some examples, the camera is in communicationwith the device 102. In some examples, the device 102 executes anapplication, e.g., a camera application provided as acomputer-executable program, that enables the device 102 to provideimage data based on scenes viewed by the camera. In the example of FIG.1, example scenes 122, 124 are provided. In some examples, a scene caninclude one or more entities, e.g., person, place, thing. For example,the scene 122 includes a drink 128 and a hamburger 130, and the scene124 includes a poster 132.

In some examples, the device 102 displays a view-finder interface thatenables a user 140 to view a scene using the camera. For example, theuser 140 can manipulate the device 102 to point the camera toward ascene, e.g., the scenes 122, 124. In response, image data correspondingto the scene can be provided. In some examples, the image data can beprocessed to provide a graphical representation, e.g., image, of thescene. In some examples, the image data can be provided as pre-captureimage data, e.g., as real-time data. In some examples, pre-capture imagedata includes image data corresponding to a scene and is provided beforean image of the scene is captured, e.g., the user “snapping” a picture.In some examples, the image data can be provided as post-capture imagedata. In some examples, post-capture image data includes image datacorresponding to a scene and is provided after an image of the scene iscaptured, e.g., in an image file provided in response to the user“snapping” a picture.

Implementations of the present disclosure are directed to providing anaction interface for display in a viewfinder displayed on a device basedon image data. In some examples, the viewfinder is provided by an imagecapturing application, e.g., camera application, executed on a computingdevice. More specifically, implementations of the present disclosure aredirected to providing one or more annotations based on the image data,determining one or more actions based on the one or more annotations,and providing an action interface based on the one or more annotations.In some implementations the one or more actions are provided based onuser-specific information. In some implementations, the action interfaceincludes one or more action elements, each action element beingselectable to induce execution of a respective action. Example actionscan include a share content action that can be executed to sharecontent, e.g., images, video, with other users, a purchase action thatcan be executed to purchase one or more items, a download action thatcan be executed to download content, e.g., music, video, images, an addevent action that can be executed to add an event to a calendar, and anadd to album action that can be executed to add content, e.g., images,to an album, e.g., photo album. Although example actions are providedherein, it is contemplated that implementations of the presentdisclosure can include any appropriate actions and respective actionelements.

By way of example, a user can use a device, e.g., the device 102 of FIG.1, which can provide first image data, e.g., pre-capture orpost-capture, that can be displayed in a viewfinder, e.g., displayed ona display of the device. The first image data can be processed based oncontent of the first image data, as described herein, to provide a firstaction interface that includes a first set of action elementscorresponding to respective actions. The user can use the device, e.g.,the device 102 of FIG. 1, which can provide second image data, e.g.,pre-capture or post-capture, that can be displayed in a viewfinder,e.g., displayed on a display of the device. The second image data can beprocessed based on content of the second image data, as describedherein, to provide a second action interface that includes a second setof action elements corresponding to respective actions. In someexamples, the first set of action elements is different from the secondset of action elements.

Accordingly, implementations of the present disclosure enable actionelements to be provided based on content that is represented in imagedata. This stands in contrast to, for example, functionality based onmachine-readable codes that are depicted in image data. For example,image data can include a representation of a machine-readable code,e.g., a QR code, a bar code, which can be processed. In general, themachine-readable code encodes instructions that dictate functionalitythat can be executed, e.g., display information to a user, navigate to awebsite, play audio. In contrast, and as described in further detailherein, implementations of the present disclosure determine entitiesdepicted in image data, determine one or more actions that could beexecuted based on the entities, and provide corresponding actionelements in a viewfinder to enable the user to execute the actions.

In some implementations, and as noted above, the image data correspondsto a scene that is viewed by a camera. In some examples, the sceneincludes one or more entities that are represented in the image data. Insome implementations, the image data is processed to identify the one ormore entities. In some examples, the image data can be provided to anentity recognition engine, which processes the image data to provide aset of entities that are represented in the image data. In someexamples, the entity recognition engine is provided as one or morecomputer-executable programs that can be executed by one or morecomputing devices, e.g., the device 102 and/or the server system 104. Insome examples, the set of entities can include one or more entities. Insome examples, the set of entities includes no entities, e.g., noentities are recognized by the entity recognition engine. In someimplementations, entities can include specific entities. For example, anentity can include a hamburger that is depicted in the image data. Insome examples, entities can include categories of entities. For example,an entity can include food. As another example, if a hamburger isdepicted in the image data, the set of entities can include “hamburger”and “food,” e.g., a specific entity and a corresponding category.

In some examples, one or more annotations are associated with eachentity of the one or more entities. In some examples, the set ofentities can be provided to an annotation engine, which processes theset of entities to provide a set of annotations. In some examples, theannotation engine is provided as one or more computer-executableprograms that can be executed by one or more computing devices, e.g.,the device 102 and/or the server system 104. In some implementations,the entity recognition engine and the annotation engine are combined,e.g., are the same engine.

In some examples, the set of annotations can include one or moreannotations. In some examples, the set of annotations includes noannotations, e.g., no entities are included in the set of entities. Insome examples, if no entities are included in the set of entities, theset of entities is not provided to the annotation engine. In someimplementations, each annotation includes annotation data that can beappended to the underlying image data, e.g., the image data that wasprocessed to provide the set of entities.

In some implementations, annotations can be provided based on searchingentities using a search engine. In some examples, the annotation enginecan provide an entity as a search query to the search engine, and thesearch engine can provide search results to the annotation engine. Insome examples, annotations can be based on search results. For example,an entity can include the text “Best Band Ever,” which is depicted inthe image data, and which is the name of a band of musicians. In someexamples, the text “Best Band Ever” can be provided as a search query tothe search engine, and search results can be provided, which areassociated with the particular band. Example search results can includetour dates, albums, and/or merchandise associated with the band, whichsearch results can be provided as annotations.

In some implementations, annotations can relate entities depicted in theimage data. For example, an entity can include the text “Best BandEver,” an entity can include the text “Jan. 30, 2014,” and an entity caninclude the text “TX State Fair,” e.g., as depicted in the scene 124 ofFIG. 1. In some examples, the entities can be provided as search termsto the search engine, and in response, the search results include aconcert by the Best Band Ever to be performed (or previously performed)at the TX State Fair on Jan. 30, 2014, which can be provided as anannotation.

In some implementations, annotations can be provided based oncross-referencing entities with a structured data graph, e.g., knowledgegraph. In some examples, the structured data graph includes a pluralityof nodes and edges between nodes. In some examples, a node represents anentity and an edge represents a relationship between entities. Nodesand/or entities of a structured data graph can be provided based onassociations that have been determined between entities. In someexamples, the structured data graph can be provided based on one or moreschemas. In some examples, a schema describes how data is structured inthe user-specific knowledge graph.

An example schema structures data based on domains, types andproperties. In some examples, a domain includes one or more types thatshare a namespace. In some examples, a namespace is provided as adirectory of uniquely named objects, where each object in the namespacehas a unique name, e.g., identifier. In some examples, a type denotes an“is a” relationship about a topic, and is used to hold a collection ofproperties. In some examples, a topic represents an entity, such as aperson, place or thing. In some examples, each topic can have one ormore types associated therewith. In some examples, a property isassociated with a topic and defines a “has a” relationship between thetopic and a value of the property. In some examples, the value of theproperty can include another topic.

In some implementations, the annotation engine can provide an entity asinput to a structured data graph system, e.g., a knowledge graph system,and the structured data graph system can provide one or more annotationsas output to the annotation engine. In some examples, the structureddata graph system can cross-reference the entity with objects that arecaptured in the structured data graph, and can provide annotations asobjects and/or relationships between objects based on the schema. Forexample, the entity hamburger can be provided as input, and theannotation “hamburger is a food” can be provided as output.

In some implementations, the one or more actions are determined based onrespective entities and/or annotations. In some implementations, thedevice that provided the image data, e.g., the device 102 of FIG. 1,determines one or more actions based on the entities and/or annotations.For example, the device can provide a set of entities and/or a set ofannotations, and can determine the one or more actions. As anotherexample, the device can receive a set of entities and/or annotations,e.g., from the server system 104, and can determine the one or moreactions. In some examples, the device provides a set of entities and/ora set of annotations, and the device also receives a set of entitiesand/or a set of annotations.

In some implementations, the device that provided the image data, e.g.,the device 102 of FIG. 1, receives one or more actions based on theentities and/or annotations. For example, the device and/or the serversystem can provide a set of entities and/or a set of annotations, andthe server system can determine the one or more actions. In someimplementations, the device determines one or more actions, and thedevice receives one or more actions.

In some implementations, the one or more actions are provided based onmapping entities and/or annotations to actions. For example, an entityand/or annotation that is associated with an event, e.g., a concert, canbe mapped to an add event action that can be executed to add an event toa calendar, and/or to a purchase action, e.g., to purchase tickets tothe event, purchase albums. Consequently, the add event action and/orthe purchase action can be included in the one or more events. Asanother example, an entity and/or annotation can correspond to an imagealbum of the user, e.g., a Food album, and can be mapped to an add toalbum action that can be executed to add content, e.g., image, to analbum. Accordingly, the action is provided based on user-specificinformation, e.g., the knowledge that the user has an image albumrelevant to the entity depicted in the image. As another example, anentity and/or annotation can correspond to one or more contacts of theuser, e.g., within a social networking service, and can be mapped to ashare image action that can be executed to share the image with thecontacts. Accordingly, the action is provided based on user-specificinformation, e.g., the knowledge that the user typically shares contentdepicted in the image with the particular contacts.

In accordance with implementations of the present disclosure, an actioninterface can be displayed based on the one or more actions. In someexamples, the action interface is displayed in a viewfinder thatdisplays the image data, e.g., from which the one or more actions weredetermined. In some examples, the action interface includes one or moreaction elements, each action element corresponding to an action of theone or more actions. Each action element is selectable to induceexecution of the respective action. Accordingly, action elements of theaction interface can include content-specific action elements, e.g.,action elements provided based on actions, which were determined basedon content of the image data.

In some implementations, the action interface can include an informationframe that provides information regarding content, e.g., entities,depicted in the image data. For example, if a particular book isrepresented in the image data, the action interface can include aninformation frame that depicts information associated with the book,e.g., image of the cover, title, summary, author, publication date, andgenre. As another example, if a particular band is represented in theimage data, the action interface can include an information frame thatdepicts information associated with the band, e.g., picture of the band,a list of band members, a list of albums.

In some implementations, the action interface can includecontent-agnostic action elements. In some examples, a content-agnosticaction element corresponds to an action that can be provided regardlessof the content of the image data. For example, the image data cancorrespond to an image that was captured by the camera. Consequently, ashare action element can be provided to share the image. In someexamples, the share action element is provided in response to the imagebeing captured, and not the content depicted in the image.

Implementations of the present disclosure are described in furtherdetail herein in the context of non-limiting examples. It iscontemplated that implementations of the present disclosure can berealized in any appropriate contexts including, and in addition to theexamples provided herein.

FIGS. 2A-2C depict example interfaces in accordance with implementationsof the present disclosure. With particular reference to FIG. 2A, adevice 200, e.g., the device 102 of FIG. 1, includes a display 202. Inthe depicted example, the display 202 is displaying a viewfinder 204.For example, the viewfinder 204 can be displayed in response touser-selection of a camera application, e.g., a computer-executableprogram executed by the device 200. The viewfinder 204 includes acapture icon 206. In some examples, a user, e.g., the user 140 of FIG.1, can select the capture icon 206 to capture an image of a scenedisplayed in the viewfinder 204. In the depicted example, the viewfinder204 is displaying the scene 124 of FIG. 1, which includes the poster132. For example, the user can point the device 200 toward the scene124, such that the camera views the scene 124 and displays the scene 124in the viewfinder 204.

In accordance with implementations of the present disclosure, image datais provided, which is used to display the scene 124 in the viewfinder204. In some examples, the image data is processed to identify one ormore entities from content of the scene 124. In the depicted example,example content can include artwork 220 provided in the poster 132, andtext 222 provided in the poster 132. In the depicted example, theartwork 220 includes an image of a guitarist in a spotlight, and thetext 222 includes a name of a band, e.g., “Best Band Ever,” a date,e.g., “Jan. 30, 2014,” a location, e.g., “TX State Fair,” and otherinformation, e.g., “Doors @ 8 PM.” In some implementations, the imagedata is processed to identify the band “Best Band Ever” as an entity,the date “Jan. 30, 2014” as an entity, the time “8 PM” as an entity,and/or the location “TX State Fair” as an entity.

In some implementations, one or more annotations are provided based onthe one or more entities. For example, one or more annotations can beprovided based on the entity “Best Band Ever.” Example annotations caninclude “name,” “band,” “music,” and a category of music, e.g., “rock,”“indie,” “classical.” As another example, one or more annotations can beprovided based on the entity “TX State Fair.” Example annotations caninclude “location,” “venue,” and “concerts.” In some examples,annotations can be provided as image-specific structured data receivedfrom a knowledge graph system, as described herein.

In some implementations, one or more actions are provided based on theone or more entities and/or the image-specific structured data. In viewof the example of FIGS. 2A-2C, actions can include a purchase ticketaction that can be executed to initiate purchase of tickets to theconcert depicted in the poster, an add event action that can be executedto add the concert as an event to a calendar, and a download action thatcan be executed to initiate downloading of an album of the band.

FIG. 2B depicts the viewfinder 204 in response to one or more actionsbeing provided based on the image data. More particularly, arepresentation 250 of an action card is displayed in the viewfinder. Inthe depicted example, the representation 250 is a scaled version of theaction card, such that representation 250 of the action card is smallerthan it otherwise could be, and does not significantly interfere withthe image displayed in the viewfinder 204. In some examples, therepresentation 250 is provided as a portion of the full action card. Insome implementations, the user can select the representation 250 toinitiate display of a full action card.

FIG. 2C depicts the viewfinder 204 in response to user selection of therepresentation 250 of FIG. 2B. In the depicted example, a full actioncard 250′ is displayed and includes action elements 252, 254, 256. Theaction element 252 corresponds to the purchase ticket action, the actionelement 254 corresponds to the download action, and the action element256 corresponds to the add event action. For example, in response touser selection of the action element 252, an interface can be displayed,through which the user can commence purchase of tickets to the concert.As another example, in response to user selection of the action element254, an interface can be displayed, through which the user can commencepurchase and/or download of one or more albums released by the band. Asanother example, in response to user selection of the action element256, an interface can be displayed, through which the user can commenceadding the concert as an event to a calendar. In some examples,interfaces that are displayed in response to user selection of an actionelement can be displayed as an interface of an application executed bythe device 200, e.g., a mobile app, and/or as a web page displayed in abrowser application executed by the device 200.

In some implementations, the action elements 252, 254, 256 includecontent-specific action elements. Although not depicted in FIG. 2C, theaction card 250′ can include content-agnostic action elements. Forexample, a share content action element can be provided to share theimage with one or more other users.

In some implementations, actions can be executed in response toselection of an action element without requiring any additional userinput. For example, in response to user selection of the action item256, an event corresponding to the concert can be automatically added toa calendar without further user input.

Implementations of the present disclosure can further include one ormore actions that are automatically executed without requiring the userto select the action. For example, a reminder action can beautomatically executed in response to identifying an event depicted inthe image data. Consequently, an event reminder can be provided to theuser without the user explicitly requesting that they be reminded aboutthe event. In some examples, the reminder can be enhanced to includecontent, e.g., images, video, associated with the event. It iscontemplated that automatic actions can be provided in any appropriatecontext, e.g., events, sharing, add to album, and the like.

Referring again to FIG. 1, the user 140 can use the device 102 toprovide image data based on the scene 122, the image data includingrespective representations of the drink 128 and the hamburger 130. Theimage data can be processed, as described herein, and one or moreactions can be determined. Example actions can include an add image toFood album action, and/or an add image to Hamburger album action. Forexample, it can be determined that the image data depicts a hamburgerand/or food, and that the user maintains a Food album and/or a Hamburgeralbum. Consequently, an action interface can be displayed and caninclude respective, content-specific action elements.

As another example, the user 140 can use the device 102 to provide imagedata based on a scene that includes one or more persons, e.g., the usertakes a picture of two friends, Michelle and Louise. The image data canbe processed, as described herein, and one or more actions can bedetermined. For example, the image data can be processed, and it can bedetermined that Michelle and Louise are depicted in the image data.Example actions can include an add image to Friends album action, ashare image with Michelle action, a share image with Louise action,and/or a share image with Michelle and Louise action.

FIG. 3 depicts an example process 300 that can be executed in accordancewith implementations of the present disclosure. The example process 300can be implemented, for example, by the example environment 100 ofFIG. 1. In some examples, the example process 300 can be provided by oneor more computer-executable programs executed using one or morecomputing devices, e.g., the device 102 and/or the server system 104 ofFIG. 1.

Image data is received (302). In some examples, one or more processorsof the device 102 and/or of the server system 104 receives the imagedata. In some examples, the image data is provided from a camera, e.g.,of the device 102, and corresponds to a scene viewed by the camera. Insome examples, the image data is pre-capture image data. In someexamples, the image data is post-capture image data. One or moreentities are identified (304). In some examples, the image data isprocessed by the computing device 102 and/or the server system 104 toidentify the one or more entities. In some examples, an entity isprovided as a person, place or thing that is represented in the imagedata.

One or more annotations are received (306). In some examples, the one ormore entities and/or structured data are processed by the computingdevice 102 and/or the server system 104 to provide the one or moreannotations. A set of actions are determined (308). In some examples,the one or more annotations are processed by the device 102 and/or theserver system 104 to determine actions that can be executed. In someexamples, it can be determined that no actions are determined.Consequently, the set of actions can include an empty set. In someexamples, it can be determined that one or more actions are determined.Consequently, the set of actions can include one or more actions.

It is determined whether the set of actions includes at least one action(310). In some examples, the device 102 and/or the server system 104 candetermine whether the set of actions includes at least one action. Ifthe set of actions includes at least one action, instructions areprovided to display an action interface (312). In some examples, thedevice 102 and/or the server system 104 can provide the instructions.For example, one or more processors of the device 102 can provideinstructions to a display processor of the device 102. As anotherexample, the server system 104 can provide instructions to the device102. If the set of actions does not include at least one action,instructions are not provided to display an action interface (314).

Implementations of the subject matter and the operations described inthis specification can be realized in digital electronic circuitry, orin computer software, firmware, or hardware, including the structuresdisclosed in this specification and their structural equivalents, or incombinations of one or more of them. Implementations of the subjectmatter described in this specification can be realized using one or morecomputer programs, i.e., one or more modules of computer programinstructions, encoded on computer storage medium for execution by, or tocontrol the operation of, data processing apparatus. Alternatively or inaddition, the program instructions can be encoded on an artificiallygenerated propagated signal, e.g., a machine-generated electrical,optical, or electromagnetic signal that is generated to encodeinformation for transmission to suitable receiver apparatus forexecution by a data processing apparatus. A computer storage medium canbe, or be included in, a computer-readable storage device, acomputer-readable storage substrate, a random or serial access memoryarray or device, or a combination of one or more of them. Moreover,while a computer storage medium is not a propagated signal, a computerstorage medium can be a source or destination of computer programinstructions encoded in an artificially generated propagated signal. Thecomputer storage medium can also be, or be included in, one or moreseparate physical components or media (e.g., multiple CDs, disks, orother storage devices).

The operations described in this specification can be implemented asoperations performed by a data processing apparatus on data stored onone or more computer-readable storage devices or received from othersources.

The term “data processing apparatus” encompasses all kinds of apparatus,devices, and machines for processing data, including by way of example aprogrammable processor, a computer, a system on a chip, or multipleones, or combinations, of the foregoing. The apparatus can includespecial purpose logic circuitry, e.g., an FPGA (field programmable gatearray) or an ASIC (application specific integrated circuit). Theapparatus can also include, in addition to hardware, code that createsan execution environment for the computer program in question, e.g.,code that constitutes processor firmware, a protocol stack, a databasemanagement system, an operating system, a cross-platform runtimeenvironment, a virtual machine, or a combination of one or more of them.The apparatus and execution environment can realize various differentcomputing model infrastructures, such as web services, distributedcomputing and grid computing infrastructures.

A computer program (also known as a program, software, softwareapplication, script, or code) can be written in any form of programminglanguage, including compiled or interpreted languages, declarative orprocedural languages, and it can be deployed in any form, including as astandalone program or as a module, component, subroutine, object, orother unit suitable for use in a computing environment. A computerprogram may, but need not, correspond to a file in a file system. Aprogram can be stored in a portion of a file that holds other programsor data (e.g., one or more scripts stored in a markup languagedocument), in a single file dedicated to the program in question, or inmultiple coordinated files (e.g., files that store one or more modules,subprograms, or portions of code). A computer program can be deployed tobe executed on one computer or on multiple computers that are located atone site or distributed across multiple sites and interconnected by acommunication network.

The processes and logic flows described in this specification can beperformed by one or more programmable processors executing one or morecomputer programs to perform actions by operating on input data andgenerating output. The processes and logic flows can also be performedby, and apparatus can also be implemented as, special purpose logiccircuitry, e.g., an FPGA (field programmable gate array) or an ASIC(application specific integrated circuit).

Processors suitable for the execution of a computer program include, byway of example, both general and special purpose microprocessors, andany one or more processors of any kind of digital computer. Generally, aprocessor will receive instructions and data from a read only memory ora random access memory or both. Elements of a computer can include aprocessor for performing actions in accordance with instructions and oneor more memory devices for storing instructions and data. Generally, acomputer will also include, or be operatively coupled to receive datafrom or transfer data to, or both, one or more mass storage devices forstoring data, e.g., magnetic, magneto optical disks, or optical disks.However, a computer need not have such devices. Moreover, a computer canbe embedded in another device, e.g., a mobile telephone, a personaldigital assistant (PDA), a mobile audio or video player, a game console,a Global Positioning System (GPS) receiver, or a portable storage device(e.g., a universal serial bus (USB) flash drive), to name just a few.Devices suitable for storing computer program instructions and datainclude all forms of nonvolatile memory, media and memory devices,including by way of example semiconductor memory devices, e.g., EPROM,EEPROM, and flash memory devices; magnetic disks, e.g., internal harddisks or removable disks; magneto optical disks; and CDROM and DVD-ROMdisks. The processor and the memory can be supplemented by, orincorporated in, special purpose logic circuitry.

To provide for interaction with a user, implementations of the subjectmatter described in this specification can be implemented on a computerhaving a display device, e.g., a CRT (cathode ray tube), LED(light-emitting diode) or LCD (liquid crystal display) monitor, fordisplaying information to the user and a keyboard and a pointing device,e.g., a mouse or a trackball, by which the user can provide input to thecomputer. Other kinds of devices can be used to provide for interactionwith a user as well; for example, feedback provided to the user can beany form of sensory feedback, e.g., visual feedback, auditory feedback,or tactile feedback; and input from the user can be received in anyform, including acoustic, speech, or tactile input. In addition, acomputer can interact with a user by sending documents to and receivingdocuments from a device that is used by the user; for example, bysending web pages to a web browser on a user's client device in responseto requests received from the web browser.

Implementations of the subject matter described in this specificationcan be implemented in a computing system that includes a backendcomponent, e.g., as a data server, or that includes a middlewarecomponent, e.g., an application server, or that includes a frontendcomponent, e.g., a client computer having a graphical user interface ora Web browser through which a user can interact with an implementationof the subject matter described in this specification, or anycombination of one or more such backend, middleware, or frontendcomponents. The components of the system can be interconnected by anyform or medium of digital data communication, e.g., a communicationnetwork. Examples of communication networks include a local area network(“LAN”) and a wide area network (“WAN”), an inter-network (e.g., theInternet), and peer-to-peer networks (e.g., ad hoc peer-to-peernetworks).

The computing system can include clients and servers. A client andserver are generally remote from each other and typically interactthrough a communication network. The relationship of client and serverarises by virtue of computer programs running on the respectivecomputers and having a client-server relationship to each other. In someimplementations, a server transmits data (e.g., an HTML page) to aclient device (e.g., for purposes of displaying data to and receivinguser input from a user interacting with the client device). Datagenerated at the client device (e.g., a result of the user interaction)can be received from the client device at the server.

While this specification contains many specific implementation details,these should not be construed as limitations on the scope of anyimplementation of the present disclosure or of what may be claimed, butrather as descriptions of features specific to example implementations.Certain features that are described in this specification in the contextof separate implementations can also be implemented in combination in asingle implementation. Conversely, various features that are describedin the context of a single implementation can also be implemented inmultiple implementations separately or in any suitable sub-combination.Moreover, although features may be described above as acting in certaincombinations and even initially claimed as such, one or more featuresfrom a claimed combination can in some cases be excised from thecombination, and the claimed combination may be directed to asub-combination or variation of a sub-combination.

Similarly, while operations are depicted in the drawings in a particularorder, this should not be understood as requiring that such operationsbe performed in the particular order shown or in sequential order, orthat all illustrated operations be performed, to achieve desirableresults. In certain circumstances, multitasking and parallel processingmay be advantageous. Moreover, the separation of various systemcomponents in the implementations described above should not beunderstood as requiring such separation in all implementations, and itshould be understood that the described program components and systemscan generally be integrated together in a single software product orpackaged into multiple software products.

Thus, particular implementations of the subject matter have beendescribed. Other implementations are within the scope of the followingclaims. In some cases, the actions recited in the claims can beperformed in a different order and still achieve desirable results. Inaddition, the processes depicted in the accompanying figures do notnecessarily require the particular order shown, or sequential order, toachieve desirable results. In certain implementations, multitasking andparallel processing may be advantageous.

1. (canceled)
 2. A computer-implemented method comprising: receiving, bythe one or more processors, image data, the image data being providedfrom a camera and corresponding to a scene viewed within a viewfinder ofthe camera, the image data depicting a plurality of entities;determining, by the one or more processors, one or more annotations forone or more of the plurality of entities depicted by at least a portionof the image data; respectively determining, by the one or moreprocessors based at least in part on the one or more annotations foreach of the one or more entities, one or more purchase actions for theone or more entities; and displaying, by the one or more processorswithin the viewfinder, one or more action cards respectivelycorresponding to the one or more purchase actions.
 3. Thecomputer-implemented method of claim 2, further comprising: in responseto displaying the one or more action cards, receiving, by the one ormore processors, a user input corresponding to the one or more actioncards of the one or more purchase actions for the one or more entities;and executing, by the one or more processors, the one or more purchaseactions associated with the one or more action cards.
 4. Thecomputer-implemented method of claim 2, wherein the one or moreannotations for at least one of the one or more of the plurality ofentities comprises a type for the at least one entity.
 5. Thecomputer-implemented method of claim 4, wherein the type is representedwithin a structured data graph.
 6. The computer-implemented method ofclaim 5, wherein respectively determining, by the one or more processorsbased at least in part on the one or more annotations for each of theone or more entities, one or more purchase actions for the one or moreentities comprises: cross-referencing the entity with objects that havethe same type in the structured data graph.
 7. The computer-implementedmethod of claim 5, wherein the structured data graph comprises dataspecific to a user.
 8. A computing system comprising: one or moreprocessors; and one or more tangible, non-transitory, computer readablemedia that collectively store instructions that when executed by the oneor more processors cause the computing system to perform operationscomprising: receiving image data, the image data being provided from acamera and corresponding to a scene viewed within a viewfinder of thecamera, the image data depicting a plurality of entities; determiningone or more annotations for one or more of the plurality of entitiesdepicted by at least a portion of the image data; respectivelydetermining, based at least in part on the one or more annotations foreach of the one or more entities, one or more purchase actions for theone or more entities; and displaying one or more action cardsrespectively corresponding to the one or more purchase actions.
 9. Thecomputing system of claim 8, further comprising: in response todisplaying the one or more action cards, receiving a user inputcorresponding to the one or more action cards of the one or morepurchase actions for the one or more entities; and executing, by the oneor more processors, the one or more purchase actions associated with theone or more action cards.
 10. The computing system of claim 8, whereinthe one or more annotations for at least one of the one or more of theplurality of entities comprises a type for the at least one entity. 11.The computing system of claim 10, wherein the type is represented withina structured data graph.
 12. The computing system of claim 11, whereinrespectively determining, for each of the one or more entities, one ormore purchase actions for the one or more entities comprises:cross-referencing the entity with objects that have the same type in thestructured data graph.
 13. The computing system of claim 11, wherein thestructured data graph comprises data specific to a user.
 14. Thecomputing system of claim 8, wherein the image data comprises an imagecaptured by a user.
 15. The computing system of claim 8, wherein theviewfinder is within a mobile application.
 16. One or more tangible,non-transitory, computer-readable media that collectively storeinstructions when executed by one or more processors cause the one ormore processors to perform operations, the operations comprising:receiving image data, the image data being provided from a camera andcorresponding to a scene viewed within a viewfinder of the camera, theimage data depicting a plurality of entities; determining one or moreannotations for one or more of the plurality of entities depicted by atleast a portion of the image data; respectively determining, based atleast in part on the one or more annotations for each of the one or moreentities, one or more purchase actions for the one or more entities; anddisplaying one or more action cards respectively corresponding to theone or more purchase actions.
 17. The one or more tangible,non-transitory, computer-readable media of claim 16, further comprising:in response to displaying the one or more action cards, receiving, bythe one or more processors, a user input corresponding to the one ormore action cards of the one or more purchase actions for the one ormore entities; and executing, by the one or more processors, the one ormore purchase actions associated with the one or more action cards. 18.The one or more tangible, non-transitory, computer-readable media ofclaim 16, wherein the one or more annotations for at least one of theone or more of the plurality of entities comprises a type for the atleast one entity.
 19. The one or more tangible, non-transitory,computer-readable media of claim 18, wherein the type is representedwithin a structured data graph.
 20. The one or more tangible,non-transitory, computer-readable media of claim 19, whereinrespectively determining, based at least in part on the one or moreannotations for each of the one or more entities, one or more purchaseactions for the one or more entities comprises: cross-referencing theentity with objects that have the same type in the structured datagraph.
 21. The one or more tangible, non-transitory, computer-readablemedia of claim 19, wherein the structured data graph comprises dataspecific to a user.